package com.sixdoors.business.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sixdoors.common.annotation.Excel;
import com.sixdoors.common.core.domain.BaseEntity;

/**
 * 文章部位对象 article_part
 * 
 * @author sixdoors
 * @date 2024-04-08
 */
public class ArticlePart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String articleTitle;

    /** 文章摘要 */
    @Excel(name = "文章摘要")
    private String articleAbstract;

    @Excel(name = "文章标题")
    private String content;

    /** 文章封面 */
    @Excel(name = "文章封面")
    private String cover;

    /** 文章类型，见字典 */
    @Excel(name = "文章类型，见字典")
    private Long articleType;

    /** 文章标签，见字典 */
    @Excel(name = "文章标签，见字典")
    private Long articleLabel;

    /** 可见范围，见字典 */
    @Excel(name = "可见范围，见字典")
    private Long visibleRange;

    /** 是否是草稿 0是 1否 */
    @Excel(name = "是否是草稿 0是 1否")
    private Integer draft;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Long viewVolume;

    /** 是否删除 0否 1是 */
    private Integer delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setArticleTitle(String articleTitle) 
    {
        this.articleTitle = articleTitle;
    }

    public String getArticleTitle() 
    {
        return articleTitle;
    }
    public void setArticleAbstract(String articleAbstract) 
    {
        this.articleAbstract = articleAbstract;
    }

    public String getArticleAbstract() 
    {
        return articleAbstract;
    }
    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }
    public void setArticleType(Long articleType)
    {
        this.articleType = articleType;
    }

    public Long getArticleType()
    {
        return articleType;
    }
    public void setArticleLabel(Long articleLabel)
    {
        this.articleLabel = articleLabel;
    }

    public Long getArticleLabel()
    {
        return articleLabel;
    }
    public void setVisibleRange(Long visibleRange) 
    {
        this.visibleRange = visibleRange;
    }

    public Long getVisibleRange() 
    {
        return visibleRange;
    }
    public void setDraft(Integer draft) 
    {
        this.draft = draft;
    }

    public Integer getDraft() 
    {
        return draft;
    }
    public void setViewVolume(Long viewVolume) 
    {
        this.viewVolume = viewVolume;
    }

    public Long getViewVolume() 
    {
        return viewVolume;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("articleTitle", getArticleTitle())
            .append("articleAbstract", getArticleAbstract())
            .append("cover", getCover())
            .append("articleType", getArticleType())
            .append("articleLabel", getArticleLabel())
            .append("visibleRange", getVisibleRange())
            .append("draft", getDraft())
            .append("viewVolume", getViewVolume())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
